<?php

namespace App\Http\Resources;

class PropertyListResource extends Resource
{
    /**
     * Transform the resource collection into an array.
     *
     * @param \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function toArray($request)
    {
        return [
            'size' => $this->size,
            'storage' => $this->storage,
            'status' => $this->status,
            'time' => $this->updated_at->toDateTimeString()
        ];
    }
}
